<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function printf(a){
				var i;
				for(i = 0; i<a; i++)
				{
					console.log(i);
				}
			}
			var a = prompt("请输入:");
			printf(a);
		</script>
	</head>
	<body>
	</body>
</html>
